@extends('layouts.default') @section('main')
<link rel="stylesheet" href="/css/uniform.css" />
<link rel="stylesheet" href="/css/select2.css" />

<div id="content">
  <div id="content-header">
    <div id="breadcrumb"> <a href="{{url('home')}}" title="返回首页" class="tip-bottom"><i class="icon-home"></i> 首页</a> <a href="{{url('project/index')}}" class="tip-bottom">项目管理</a> <a href="{{url('project/info?id='.$project_id)}}" class="tip-bottom">项目信息</a><a href="#" class="current">项目浏览者管理</a> </div>
  </div>
  <div class="container-fluid">
    <div class="row-fluid">
      <div class="span12">

        <div class="widget-box">
          <div class="widget-title"> <span class="icon"><i class="icon-th"></i></span>
            <h5>项目浏览者管理</h5>
          </div>
   
          <div class="widget-content nopadding">
            <table class="table table-bordered table-striped">
              <thead>
                <tr>
                  <th>项目名称</th>
                  <th>浏览者名称</th>
                  <th>最近浏览时间</th>
                  <th>浏览者IP</th>
                </tr>
              </thead>
              <tbody>
              	@foreach($viewers as $key => $viewer)
                <tr class="gradeX">
                  <td>{{ $project->subject }}</td>
                  <td>{{ $viewer->user->nickname or '' }}</td>
                  <td><?php echo date('Y-m-d',strtotime($viewer->updated_at)); ?></td>
                  <td>{{ $viewer->ip }}</td>
                </tr>
                @endforeach
              </tbody>
            </table>
          </div>
        </div><?php echo $viewers->render();?>
      </div>
    </div>
  </div>
</div>
<script src="/js/matrix.tables.js"></script>

@stop
